package com.welfare;

import com.welfare.util.GenHandUtils;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;

import java.sql.SQLException;

/**
 * @author dong
 * @date 2022-08-23 10:30
 */

@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class GenHandsApplication {
    public static void main(String[] args)
    {
        ConfigurableApplicationContext applicationContext=SpringApplication.run(GenHandsApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ启动成功");
        GenHandUtils genHandUtils=applicationContext.getBean("genHandUtils",GenHandUtils.class);
        try {
            genHandUtils.gen();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
